<template>
    <div>
        <router-link to="zizi" active-class="my-my-name" event="click">导航一</router-link>
        <router-link to="sunsun" active-class="my-my-name" event="click">导航二</router-link>
        <router-view/>
    </div>
</template>

<script>
import router from './router/index'
export default {
    name: "MyApp",
    data() {
        return {
        };
    },
    methods: {
        fn1() {
          console.log(router);
        }
    },
}
</script>

<style scope>
.my-my-name {
    color: orange;
}
</style>
  